package com.itheima.service;

import com.itheima.pojo.OrderSetting;
import com.itheima.pojo.OrderSettingReturn;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public interface OrdersettingService {
    /**
     * 根据日期修改可预约人数
     * @param orderSetting
     * @return
     */
    void editNumberByOrderDate(OrderSetting orderSetting);

    /**
     * 根据年月查询对应的预约设置信息
     *
     * @param month
     * @return
     */
    List<OrderSettingReturn> getOrderSettingByMonth(String month);

    /**
     * 下载文件模板
     *
     * @param filename
     * @param response
     * @return
     */
    void downloadTemplate(String filename, HttpServletResponse response) throws IOException;

    /**
     * 上传文件
     * @param excelFile
     * @return
     */
    void upload(MultipartFile excelFile);
}
